﻿using OA.Model.MyAttribute;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace OA.Model.DB
{
    [Table("RelatedCompanyContact")]
    public class RelatedCompanyContacts : BaseInfo
    {
         
        public int RelatedCompanyID { get; set; }

        /// <summary>
        /// 联系人
        /// </summary>
        [MaxLength(10)]
        [Tag(TagEnum.Text, "required", "联系人", 2, 10)]
        public string Contacts { get; set; }

        /// <summary>
        /// 电话
        /// </summary>
        [MaxLength(30)]
        [Tag(TagEnum.Text, "required", "联系电话", 2, 30)]
        public string Tel { get; set; }

        /// <summary>
        /// 称呼
        /// </summary>
        [MaxLength(5)]
        [Tag(TagEnum.Text, "required", "称呼", 2, 20)]
        public string Salutation { get; set; }

        [MaxLength(10)]
        [Tag(TagEnum.Text, "required", "岗位", 2, 10)]
        public string Position { get; set; }

        public virtual RelatedCompany RelatedCompany { get; set; }

    }
}
